home *** CD-ROM | disk | FTP | other *** search
Text File | 1995-11-28 | 2.3 KB | 57 lines | [TEXT/R*ch] |
- About MacTCP Headers
- ~~~~~~~~~~~~~~~~~~~~
-
-
- You need special headers to compile MacTCP software. Depending on your compiler
- you will need to use the files I provide for Universal Headers or Pre-Universal
- Headers. You will not need both.
-
-
- Universal Headers
- ~~~~~~~~~~~~~~~~~
- Simple Sockets works with the Universal Headers. The Universal Headers are used
- for compiling software for both PowerMacs and 68k macs. All modern Macintosh
- compilers (Metrowerks, newer MPW, Symantec C/C++ 8.0) use the Universal Headers.
-
- The Universal Headers shipped with Metrowerks Codewarrior include the standard
- MacTCP header files (MacTCPCommonTypes.h, MiscIPPB.h, etc) as well as a new
- file (MacTCP.h). As such, no additional headers are required to compile and use
- Simple Sockets with the Universal Headers.
-
- At one point in time, there were some problems with the dnr.c file shipped with
- the Universal Headers. Essentially, the dnr.c file wouldn't work with 68k macs.
- The reason had to do with some errors in the dnr.c file itself. I have
- included a copy of the dnr.c file that came with Newswatcher's source code. If
- you have problems doing DNS Lookups on 68k macs, use this dnr.c file instead of
- the one provided in your Universal Headers.
-
-
- Pre-Universal Headers
- ~~~~~~~~~~~~~~~~~~~~~
- Older C compilers (Symantec 7.0 and less (including THINK C), older MPW) predate
- the new Universal Headers. I have a copy of the MacTCP headers provided with
- version 1.1.1 of the MacTCP driver, and I have made them available in the past.
-
- However, I tried really hard to get Simple Sockets to compile with Symantec
- C/C++ 7.0 and these headers and I failed miserably. I know these used to work
- with THINK C 5.0, and so I am including them incase someone finds them useful.
-
- You can try downloading current MacTCP information from Apple. I know there is
- some useful information on ftp.info.apple.com. Perhaps they have some MacTCP
- headers that will work with Symantec C/C++ 7.0?
-
-
- What about converting my source code?
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Older versions of Simple Sockets required you to make changes to the iplow.c file
- in order to compile the software. Now using some #ifdefs, Simple Sockets should
- be able to figure that out automatically.
-
- In the process of adding these #ifdefs, I also removed some memory leaks caused
- by orphaning UPPs.
-
-
- Michael Trent
- mtrent@msn.fullfeed.com
- 11/27/95
-